package com.abapi.pay.admin.support.db.jpa;

import com.abapi.pay.admin.support.db.domain.PayBackInfo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author ldx
 * @Date 2019/11/4 10:38
 * @Description
 * @Version 1.0.0
 */
@Repository
public interface PayBackInfoRepository extends JpaRepository<PayBackInfo, Long>, JpaSpecificationExecutor<PayBackInfo> {

    PayBackInfo findByOutTradeNoAndProjectName(String outTradeNo,String projectName);

    @Query(value = "select * from t_pay_back_info info",nativeQuery = true)
    List<PayBackInfo> query();

}
